﻿using FytSoa.Core.Model.Cms;
using FytSoa.Core.Model.Sw;
using System;
using System.Collections.Generic;
using System.Text;

namespace FytSoa.Service.DtoModel
{
    /// <summary>
    /// 类别，加载品牌和规格
    /// </summary>
    public class SpectTypeBrandDto
    {
        /// <summary>
        /// 所有品牌
        /// </summary>
        public List<Sw_brand> brand { get; set; }

        /// <summary>
        /// 所有规格
        /// </summary>
        public List<Sw_spect> spect { get; set; }
    }

    /// <summary>
    /// 返回给前端的数据，修改时候可避免多次调用
    /// </summary>
    public class GetSpectTypeDto
    {
        /// <summary>
        /// 返回一个list
        /// </summary>
        public List<CmsColumn> list { get; set; }

        /// <summary>
        /// 返回单个模型
        /// </summary>
        public Sw_types model { get; set; }

        /// <summary>
        /// 所有品牌
        /// </summary>
        public List<Sw_brand> brand { get; set; }

        /// <summary>
        /// 所有规格
        /// </summary>
        public List<Sw_spect> spect { get; set; }
    }

    /// <summary>
    /// 输出规格类别
    /// </summary>
    public class SpectTypeDto
    {
        /// <summary>
        /// Desc:唯一编号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string Guid { get; set; }

        /// <summary>
        /// Desc:分类编号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int ColumnGuid { get; set; }

        /// <summary>
        /// Desc:分类编号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string ColumnTitle { get; set; }

        /// <summary>
        /// Desc:品牌编号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string BrandJson { get; set; }

        /// <summary>
        /// Desc:规格编号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string SpectJson { get; set; }
    }
}
